1·Override the apply method.
重写apply方法。
2·You can invoke a function directly with parentheses (that is, ), via the call method, or via the apply method.
可通过方法call或者方法apply直接调用有括号(也就是)的函数。
3·Listing 2 doesn't show this technique, but the apply method allows you to perform an action for each selected element.
清单2没有展示这个技术,但是apply方法允许对每个选中元素执行一个操作。
4·The feasibility of applying fuzzy mathematics method to appraise manuscript quality is studied. How to apply Method No.
探讨应用模糊数学方法评价论文稿质量的可行性。
5·It's the job of the Animation object to calculate a percent complete message and send it to the apply method of each effect.
Animation对象需要计算完成度消息并将其发送给每种特效的apply方法。
6·Any class that provides the appropriately-argumented apply method will work when called as long as the arguments line up in number and in type.
任何提供了被适当赋予了参数的apply方法的类,只要这些参数都按数字和类型排列了起来,它们都会在被调用时运行。
7·By coupling a simple click-to-apply method for interim fixes with an automatic snapshot process, applying these fixes with the appliance is both simple and safe.
通过对临时补丁使用一种简单的“单击并应用”的方法并与一个自动快照流程结合起来,使用设备应用这些补丁将变得简单又安全。
8·Another handy construct for Scala objects is the apply method. The rules state that every object that has an apply method can be called with the.apply omitted.
Scala对象另一个便利的构造手段就是apply方法,其规则是拥有apply方法的任何对象在调用时可以省略掉。apply 。
9·As it turns out, the relationship is fairly obvious: the Function1 type in the standard Scala library (meaning a function that takes one parameter) has an apply method on its definition.
事实证明,它们之间的关系相当明显:标准scala库中的Function 1类型(指包含一个参数的函数)在其定义上有一个apply方法。
10·However, SetValueBindingHandler just defines a variable (whatever var is set to; for example, "vb") to the value binding that was passed. Listing 11 shows the code to override the apply method.
但是,SetValueBindingHandler只为所传递的值绑定定义了一个变量(不论var设置为何值;例如,“vb”)。